from django.db import models

class Categories(models.Model):
    title = models.CharField(max_length=32)
    date = models.DateTimeField(auto_now_add=True)
    text = models.TextField()
class Post (models.Model):
	title = models.CharField(max_length=100)
	body = models.TextField()
	created = models.DateTimeField()
	categories= models.ForeignKey(Categories)
	
	
class ShutBlog (models.Model):
    shut_down_blog= models.BooleanField()
    message = models.CharField(max_length=400)
class Favourite_website(models.Model):
    name=models.CharField(max_length=30)
    url=models.CharField(max_length=500)

   